package org.jeecg.modules.manage.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 开票记录
 * @Author: yfkj
 * @Date:   2023-02-23
 * @Version: V1.0
 */
@Data
@TableName("caishui_bill")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="caishui_bill对象", description="开票记录")
public class CaishuiBill implements Serializable {
    private static final long serialVersionUID = 1L;


	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**税源地ID*/
    @Excel(name = "服务公司", width = 25, dictTable = "caishui_service_company", dicText = "name", dicCode = "id")
    @Dict(dictTable = "caishui_service_company", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "税源地ID")
    private String companyId;

    /**商户ID*/
    @Excel(name = "签约商户", width = 25, dictTable = "caishui_business", dicText = "name", dicCode = "id")
    @Dict(dictTable = "caishui_business", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "商户ID")
    private String businessId;

    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private Long tenantId;

	/**订单编号*/
	@Excel(name = "订单编号", width = 15)
    @ApiModelProperty(value = "订单编号")
    private String orderNo;

	/**企业名称*/
	@Excel(name = "企业名称", width = 15)
    @ApiModelProperty(value = "企业名称")
    private String businessName;

	/**企业电话*/
	@Excel(name = "企业电话", width = 15)
    @ApiModelProperty(value = "企业电话")
    private String businessPhone;

	/**企业税号*/
	@Excel(name = "企业税号", width = 15)
    @ApiModelProperty(value = "企业税号")
    private String businessTax;

	/**企业地址*/
	@Excel(name = "企业地址", width = 15)
    @ApiModelProperty(value = "企业地址")
    private String businessAddress;

	/**开户行*/
	@Excel(name = "开户行", width = 15)
    @ApiModelProperty(value = "开户行")
    private String businessBankName;

	/**银行账号*/
	@Excel(name = "银行账号", width = 15)
    @ApiModelProperty(value = "银行账号")
    private String businessBankAccount;

	/**开票类目*/
	@Excel(name = "开票类目", width = 15)
    @ApiModelProperty(value = "开票类目")
    private String categoryId;

	/**开票金额*/
	@Excel(name = "开票金额", width = 15)
    @ApiModelProperty(value = "开票金额")
    private Double amount;

	/**开票类型：1-普通发票，2-增值税专用发票*/
	@Excel(name = "开票类型：1-普通发票，2-增值税专用发票", width = 15, dicCode = "caishui_bill_type")
	@Dict(dicCode = "caishui_bill_type")
    @ApiModelProperty(value = "开票类型：1-普通发票，2-增值税专用发票")
    private Integer type;

	/**开票类目文本*/
	@Excel(name = "开票类目文本", width = 15)
    @ApiModelProperty(value = "开票类目文本")
    private String categoryText;

	/**右下角备注信息*/
	@Excel(name = "右下角备注信息", width = 15)
    @ApiModelProperty(value = "右下角备注信息")
    private String remark;

	/**收件类型：1-电子发票，2-纸质发票*/
	@Excel(name = "收件类型：1-电子发票，2-纸质发票", width = 15, dicCode = "caishui_bill_received_type")
	@Dict(dicCode = "caishui_bill_received_type")
    @ApiModelProperty(value = "收件类型：1-电子发票，2-纸质发票")
    private Integer receivedType;

	/**收件人*/
	@Excel(name = "收件人", width = 15)
    @ApiModelProperty(value = "收件人")
    private String receivedName;

	/**收件电话*/
	@Excel(name = "收件电话", width = 15)
    @ApiModelProperty(value = "收件电话")
    private String receivedPhone;

	/**收件地址*/
	@Excel(name = "收件地址", width = 15)
    @ApiModelProperty(value = "收件地址")
    private String receivedAddress;

	/**审核时间*/
	@Excel(name = "审核时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核时间")
    private Date checkTime;

	/**驳回理由*/
	@Excel(name = "驳回理由", width = 15)
    @ApiModelProperty(value = "驳回理由")
    private String rejectReason;

	/**电子发票*/
	@Excel(name = "电子发票", width = 15)
    @ApiModelProperty(value = "电子发票")
    private String electronicInvoice;

	/**发票寄出相关照片*/
	@Excel(name = "发票寄出相关照片", width = 15)
    @ApiModelProperty(value = "发票寄出相关照片")
    private String billImg;

	/**开票完成时间*/
	@Excel(name = "开票完成时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开票完成时间")
    private Date finishTime;

	/**提交时间*/
	@Excel(name = "提交时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "提交时间")
    private Date submitTime;

	/**状态：0-审核中，1-开票中，2-审核驳回，3-开票完成*/
	@Excel(name = "状态：0-审核中，1-开票中，2-审核驳回，3-开票完成", width = 15, dicCode = "caishui_bill_status")
	@Dict(dicCode = "caishui_bill_status")
    @ApiModelProperty(value = "状态：0-审核中，1-开票中，2-审核驳回，3-开票完成")
    private Integer status;
}
